<?php

include("mysql_conn.php");

$reportid = mysql_real_escape_string($_GET["reportid"]);

$sql="delete from status_reports where reportid='$reportid'";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "<html><head><meta http-equiv='refresh' content='0;url=myreports.php'><link rel='stylesheet' type='text/css' href='style.css'></head><body>
Report deleted successfully.<p>
<a href='myreports.php'>Return to My Reports</a>
</body></html>";

mysql_close($con)
?>
